﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage.Master" AutoEventWireup="true"
    CodeBehind="infoList.aspx.cs" Inherits="ZF.BLL.Admin.infoList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <style>
 .f1{ color:#3366CC;}
 .f2{ color:#f00;}
 .f3{ color:#eee;}
 .f4{ color:#339933;}
 </style>
    <!--自定义条件 开始-->
    <div class="tabHeadMenu">
        <zf:ListView runat="server" ID="lvType">
            <LayoutTemplate>
                <zf:PlaceHolder ID="itemPlaceHolder" runat="server">
                </zf:PlaceHolder>
            </LayoutTemplate>
            <ItemTemplate>
                <a href="<%=this.ListPage %>?type=<%#Eval("InfoTypeId") %>" class='<%#(int)Eval("InfoTypeId")==Type?"action":"" %>'>
                    <%#Eval("Name") %></a>
            </ItemTemplate>
        </zf:ListView>
    </div>
    <!--自定义条件 结束-->
    <!--列表 开始-->
    <div class="tabContainer">
        <zf:GridView ID="gvList" runat="server" OnSorting="gvListSorting" OnPageIndexChanging="gvListPageChanging">
            <Columns>
                <zf:TemplateField IsKeyField="true" DefaultSortField="true" DefaultSortDirection="Descending" SortExpression="Id">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="KeyLabel" Text='<%# Eval("Id")%>'></asp:Label>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField IsCheckField="true">
                </zf:TemplateField>
                <zf:TemplateField IsSerialNoField="true" Visible="false">
                </zf:TemplateField>
                <zf:TemplateField HeaderText="图片" ItemStyle-Width="300px"  >
                    <ItemTemplate>
                    <div  style="text-align: left;">
                        <table class="tal_ " style="text-align: left;">
                            <tr>
                                <td rowspan="5">
                                    <img src="/photo/info/<%# Eval("Info.FirstPhoto")%>" style="width: 60px; height: 60px" />
                                </td>
                                <td style='word-break: break-all;width: 240px;'>
                                   <span style="color:#E4532B">标题:</span> <span class="f1"><%#  Eval("Info.Title")%></span>
                                </td>
                            </tr>
                           
                        </table>
                        </div>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="价格"  >
                    <ItemTemplate>
                   <%# Eval("Info.Price")%>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="区域"  >
                    <ItemTemplate>
                   <%# Eval("City")%><%# Eval("Area") == null ? "" : string.Format("({0})", Eval("Area")) %>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="联系人"  >
                    <ItemTemplate>
                   <%# Eval("Info.Contact")%>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="电话"  >
                    <ItemTemplate>
                   <%# Eval("Info.Phone")%>
                    </ItemTemplate>
                </zf:TemplateField>
                <%--<zf:TemplateField HeaderText="状态(审核|顶置)"  >
                    <ItemTemplate>
                    
                     <span class="<%#  (bool)Eval("Info.IsVerify") ? "" : "f3"%>">审核</span> |   
                        <span class="<%#  (bool)Eval("Info.IsTop") ? "f4" : "f3"%>">顶置</span> 
                     
                    </ItemTemplate>
                </zf:TemplateField>--%>
                <zf:TemplateField HeaderText="操作">
                    <ItemTemplate>
                    <a href='/info/view.aspx?id=<%# Eval("Id")%>' target="_blank">
                                    浏览</a> |
                          <a href='<%=this.ManagePage %>?ot=Edit&id=<%# Eval("Id")%>' target="_blank">
                                    修改</a> |
                        <zf:LinkButton ID="LinkButton1" runat="server" OnClick="Delete" CommandArgument='<%#Eval("Id") %>'
                            OnClientClick="return confirm('是否确定要删除此记录');">删除</zf:LinkButton>
                    </ItemTemplate>
                </zf:TemplateField>
            </Columns>
        </zf:GridView>
    </div>
    <!--列表 结束-->
    <div class="mt5_ fc_">
    </div>
    <!--自定义按钮 开始-->
    <div class="btnContainer mt10_">
        <span class="fl_ mr10_">
            <input type="checkbox" class="checkAll" bind=".tab" />选中本页显示的所有记录</span>
        <zf:LinkButton ID="LinkButton1" runat="server" OnClick="Delete" CommandArgument='select'
            OnClientClick="return confirm('是否确定要删除选中记录');">删除选中的记录</zf:LinkButton>
        <a href="<%=this.ManagePage %>?ot=AddNew" target="_blank">发布<%=CTitle%></a>
   <%--     <zf:LinkButton ID="LinkButton2" runat="server" OnClick="Oper" CommandArgument='TopUp'
            OnClientClick="return confirm('是否确定要执行该操作');">选中<%=CTitle%>顶置</zf:LinkButton>
        <zf:LinkButton ID="LinkButton3" runat="server" OnClick="Oper" CommandArgument='TopDown'
            OnClientClick="return confirm('是否确定要执行该操作');">选中<%=CTitle%>取消顶置</zf:LinkButton>--%>
    </div>
    <!--自定义按钮 结束-->
    <div class="fc_ mt10_">
    </div>
    <!--搜索 开始-->
    <%--<div class="searchContainer">
        <table>
            <tr>
                <td class="l">
                    搜索选项:
                </td>
                <td class="m">
                    <div class="c">
                        <span class="t">物业名称:</span><span class="c">
                            <zf:TextBox runat="server" class="stxt" ID="tbTitle"></zf:TextBox></span>
                        <span class="t">物业类型:</span><span class="c">
                            <zf:DropDownList runat="server" ID="ddlHouseType" class="stxt" AppendDataBoundItems="true">
                                <asp:ListItem Value="-1" Text="未选择"></asp:ListItem>
                            </zf:DropDownList>
                        </span><span class="t">&nbsp;&nbsp;发布时间(小于):</span><span class="c">
                            <zf:TextBox runat="server" class="dttxt" ID="tbEndTime1" onfocus="calendar();"></zf:TextBox></span>
                        <br />
                        <span class="t">客户编号:</span><span class="c">
                            <zf:TextBox runat="server" class="stxt" ID="tbHouseNo"></zf:TextBox></span>
                        <span class="t">房源状态:</span><span class="c">
                            <zf:DropDownList runat="server" ID="ddlHouseStatus" class="stxt" AppendDataBoundItems="true">
                                <asp:ListItem Value="-1" Text="未选择"></asp:ListItem>
                                 <asp:ListItem Value="1" Text="发布中"></asp:ListItem>
                                  <asp:ListItem Value="2" Text="停止发布"></asp:ListItem>
                                   <asp:ListItem Value="3" Text="已交易"></asp:ListItem>
                            </zf:DropDownList>
                        </span><span class="t">&nbsp;&nbsp;发布时间(大于):</span><span class="c">
                            <zf:TextBox runat="server" class="dttxt" ID="tbEndTime2" onfocus="calendar();"></zf:TextBox></span>
                        <zf:Button runat="server" ID="Button2" Text="搜 索" OnClick="Search" class="linkbtn" />
                        <zf:Button runat="server" ID="Button1" Text="全 部" OnClick="AllList" class="linkbtn" />
                    </div>
                </td>
            </tr>
        </table>
    </div>--%>
    <!--搜索 结束-->
</asp:Content>
